package com.example.b_springboot.controller;

import com.example.b_springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 以梦为马，以汗为泉，不忘初心，不负韶华
 *
 * @author
 * @version 1.0
 * @data 2025/2/6 19:00
 */
@Controller
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/user")
    public String getUser(){
        userService.getUser();
        return "web.html";
    }
}
